import request from '@/utils/request'

// 查询个人认证列表
export function getAuditList(query) {
  return request({
    url: 'getAuditList',
    method: 'get',
    params: query
  })
}


// 修改用户状态
export function changeUserBankStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: 'changeUserBankStatus',
    method: 'post',
    data: data
  })
}


// 审核用户个人认证
export function submitAudit(bankId, userId,type) {
  const data = {
    bankId,
    userId,
    type
  }
  return request({
    url: 'submitAudit',
    method: 'post',
    data: data
  })
}

// 获取用户详情
export function getUserInfo(id) {
  return request({
    url: '/audit/getUserInfo/'+ id,
    method: 'get',

  })
}


// 修改用户
export function updateUser(data) {
  return request({
    url: '/audit/updateUser/'+data.id,
    method: 'put',
    data: data
  })
}


